package Navigation;

import java.util.ArrayList;
import java.util.List;

class CoordinateCollectionImpl implements ICollection{

	List<CoordinateTopologyObjectImpl> coordinates;
	
    public CoordinateCollectionImpl(){
        coordinates = new ArrayList<CoordinateTopologyObjectImpl>();
    }

    public void add(ITopologyObject o) {
        CoordinateTopologyObjectImpl coord = (CoordinateTopologyObjectImpl)o;
    	coordinates.add(coord);
    }

	public ITopologyObject getTopologyObject(Object key) {
		return null;
	}

    public ITopologyObject[] getCoordinates(){
    	return (ITopologyObject[])coordinates.toArray();
    }
}
